<?php
namespace common\models\trade;
use common\models\BaseModel;
/*
	充值配置表
*/

class TradeRechargeModel extends BaseModel
{

	public static function tableName()
	{
		return '{{%trade_recharge}}';
	}

	public function rules()
	{
		return [
			[['describe'],'string'],
			[['b_type','mch_id','type','update_time'],'number']
		];
	}


	## 获取配置
	public static function getConf($where)
	{
		return self::find()->where($where)->asarray()->one();
	}


}